package com.angel.beans {
	
	[Bindable]			
	[RemoteClass(alias="com.angel.architecture.persistence.beans.ErrorMessage")]
	public class ErrorMessage extends PersistentObject {
		
		public var name:String;
    	public var stacktrace:String;
	    public var otherDetails:String;
		public var message:String;
	    public var errorID:String;
		
		public function ErrorMessage() {
			super();
		}
		
		public function buildErrorMessage( error:Error, otherDetails:String):void {
			this.otherDetails = otherDetails;
			this.name = error.name;
			this.errorID = error.errorID.toString();
			this.stacktrace = error.toString();
			this.message = error.message;
		}

	}
}